

@RestController
@RequestMapping("/sysUserFeedback")
public class SysUserFeedbackController {

    @Resource
    private SysUserFeedbackService sysUserFeedbackService;


    /**
     * 获取 SysUserFeedback 分页列表
     */
    @GetMapping("/pagination")
    public Ret getSysUserFeedbackPagination( PaginationVo paginationVo, SysUserFeedbackQuery sysUserFeedbackQuery ) throws Exception {
        IPage page = sysUserFeedbackService.getSysUserFeedbackPagination(paginationVo, sysUserFeedbackQuery );
        return Ret.toPage(page);
    }


    /**
     * 获取 SysUserFeedback 所有数据
     */
    @GetMapping("/all")
    public Ret getSysUserFeedbackAllList( SysUserFeedbackQuery sysUserFeedbackQuery ) throws Exception {
        List<SysUserFeedbackEntity> list = sysUserFeedbackService.getSysUserFeedbackAllList( sysUserFeedbackQuery );
        return Ret.ok(list);
    }



    /**
     * 获取 SysUserFeedback 详情
    */
   @GetMapping("/{id}")
   public Ret getSysUserFeedbackDetail(@PathVariable Long id) throws Exception {

       SysUserFeedbackEntity sysUserFeedback = sysUserFeedbackService.getSysUserFeedbackDetail(id);
       return Ret.ok(sysUserFeedback);
   }


    /**
     * 新增 SysUserFeedback
     * */
    @PostMapping("")
    public Ret addSysUserFeedback(@RequestBody SysUserFeedbackVo sysUserFeedbackVo) throws Exception {

        sysUserFeedbackService.addSysUserFeedback(sysUserFeedbackVo);
        return Ret.ok();
    }


    /**
     * 更新 SysUserFeedback
     * */
    @PutMapping("")
    public Ret updateSysUserFeedback(@RequestBody SysUserFeedbackVo sysUserFeedbackVo) throws Exception {

        sysUserFeedbackService.updateSysUserFeedback(sysUserFeedbackVo);
        return Ret.ok();
    }


    /**
     * 删除 SysUserFeedback
     * */
    @PostMapping("/batchRemove")
    public Ret batchRemoveSysUserFeedback( @RequestBody List<Long> ids ) throws Exception {

        sysUserFeedbackService.batchRemoveSysUserFeedback(ids);
        return Ret.ok();
    }
}

  